module.exports = {
  presets: [
    [
      '@babel/preset-env',
      {
        targets: {
          chrome: '98',
        },
        useBuiltIns: 'usage', // "useBuiltIns": "entry"
        corejs: '3.21',
      },
    ],
  ],
  plugins: [],
};

/**
 * https://www.bianchengquan.com/article/142236.html
 * https://blog.csdn.net/frontend_frank/article/details/114505336
 * https://segmentfault.com/a/1190000024449390
 * https://zhuanlan.zhihu.com/p/367931462
 * https://baijiahao.baidu.com/s?id=1709387354054949596&wfr=spider&for=pc
 *
 * https://blog.csdn.net/weixin_41319237/article/details/115488032
 * https://blog.csdn.net/qq_17175013/article/details/119769033
 * https://zhuanlan.zhihu.com/p/265030136
 * https://www.npmjs.com/package/lifecycle-webpack-plugin
 * https://blog.csdn.net/qq_34998786/article/details/116465986
 * https://blog.csdn.net/weixin_34033624/article/details/87977001
 * https://webpack.docschina.org/configuration/module/
 */
